<!doctype html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <title>login</title>

        <!-- Styles -->
        <link  rel="stylesheet" href="{{ asset('css/app.css') }}">
        <link  rel="stylesheet" href="{{ asset('css/layout/login.css')}}"/>
    </head>
    <body>
        <h2>约健管理系统</h2>
        <div class="container">
        @include('shared._message')
            <div class="card card-container">
                <img id="profile-img" class="profile-img-card" src="/uploads/avatars/Zita Haag.jpg" />
                <p id="profile-name" class="profile-name-card"></p>
                <form class="form-signin" action="{{ route('postLogin') }}" method="post">
                 {{ csrf_field() }}
                    <span id="reauth-email" class="reauth-username"></span>
                    <input name="admin_name" value="{{ old('admin_name') }}" type="username" id="inputUsername" class="form-control" placeholder="username" required autofocus>
                    @if ($errors->has('admin_name'))
                        <span class="help-block">
                            <strong>{{ $errors->first('admin_name') }}</strong>
                        </span>
                    @endif
                    <input type="password" name="password" id="inputPassword" class="form-control" placeholder="password" required>
                     @if ($errors->has('password'))
                        <span class="help-block">
                            <strong>{{ $errors->first('password') }}</strong>
                        </span>
                    @endif
                    <div>
                    {!! Form::select('role', ['administrator' => '管理员', 'clubLeader' => '俱乐部负责人'], 'administrator',['class'=>'form-control login_select']); !!}
                    </div>
                    <button class="btn btn-lg btn-success btn-block btn-signin" type="submit">登录</button>
                </form><!-- /form -->
            </div><!-- /card-container -->
        </div><!-- /container -->
    </body>
</html>